﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace System.Models.Models
{
    /// <summary>
    /// 消防及电梯物资维护表
    /// </summary>
    [Table("T_Material_Maintenance")]
    public class MaterialDetailed:BaseEntity
    {
        /// <summary>
        /// 物资编号 ,物资表外键
        /// </summary>
        [ForeignKey(nameof(MaterialID))]
        public int MateriaId { get; set; }
        public Material MaterialID { get; set; }
        /// <summary>
        /// 维护结果
        /// </summary>
        [Required]
        public bool MaintenanceResults { get; set; } = true;
        /// <summary>
        /// 维护内容
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(255)]
        public string MaintenanceContent { get; set; }
    }
}
